package com.helloniu.red5.info {

import flash.utils.ByteArray;

public class UserInfo {
    public function UserInfo(auserID:String = null) {
        userID = auserID;
    }

    public function parseData(barr:ByteArray):void {
        userID = barr.readUTF();
        binfo.parseData(barr);
    }

    public function isVideoOpen():Boolean {
        return binfo.videoUnit.opened;
    }

    public function toString():String {
        return "[" + userID + ":" + role +":" + binfo+"]";
    }

    public var role:int = 0;
    public var userID:String = null;
    public var binfo:BussinessInfo = new BussinessInfo();
}
}
